package com.zdsoft.wms.dao;

import com.zdsoft.wms.bean.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository extends JpaRepository<User,Integer>{
    User findByNameAndPassword(String name, String password);
    User findById(int id);
    List<User> findAllBySerstationId(int sersationId);
}
